#include <QCoreApplication>
#include <QThread>
#include <QObject>

#include "Server.h"
#include "ClientHandle.h"
#include"gamemaster.h"

int main(int argc, char *argv[])
{
    QCoreApplication app(argc, argv);

    Server *server = new Server();
    QThread *rootServerThread = new QThread();
    QObject::connect(rootServerThread, SIGNAL(finished()), rootServerThread, SLOT(deleteLater()));
    server->moveToThread(rootServerThread);
    rootServerThread->start();

    return app.exec();
}

